<template>
  <div class="blog-container">
    <div class="blog-box">
      <div ref="monthWorkOrder" style="width: 600px; height: 300px;" />
      <div></div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'Dashboard',
  created: {
  },
  mounted() {
    this.lineChart()
  },
  methods: {
    lineChart() {
      const myChart = this.$echarts.init(this.$refs.monthWorkOrder)
      const options = {
        xAxis: {
          type: 'category',
          data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
          type: 'value'
        },
        series: [
          {
            data: [150, 230, 224, 218, 135, 147, 260],
            type: 'line'
          }
        ]
      }
      myChart.setOption(options)
    }
  }
}
</script>

<style lang="scss" scoped>
.blog {
  &-container {
    height: 96vh;
    background-image: url("../../assets/image/ef3c073dcc01895fa178e16161f6363.jpg");
    background-repeat:no-repeat;
    background-size:100% 100%;
    background-attachment: fixed;

  }
  &-box {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
